import { defineStore } from "pinia";


export const useDemoStore = defineStore('demo',{
    persist:{
        enabled:true
    },
    state:()=>{
        return {
            name: '张三',
            msg: "hello demo"
        }
    },
    getters:{},
    actions:{
        changeUserName(newName){
            this.name = newName;
        }
    }
});